#include <53func.h>
#include <mysql/mysql.h>
int main(int argc, char *argv[])
{
    MYSQL * mysql = mysql_init(NULL);
    MYSQL * ret = mysql_real_connect(mysql,"localhost","root",
                                     "123","53test",
                                     0,NULL,0);
    if(ret == NULL){
        fprintf(stderr,"mysql_real_connect:%s\n", mysql_error(mysql));
        return -1;
    }
    char sql[] = "insert into star (name,sex) values  ('Caixukun', 'm');";
    int qret = mysql_query(mysql,sql);
    if(qret != 0){
        fprintf(stderr,"mysql_query:%s\n",mysql_error(mysql));
        return -1;
    }
    return 0;
}

